package com.quick.develop.form.convert;

import com.quick.develop.form.entity.GenDynamicFormGroupEntity;
import com.quick.develop.form.vo.FormGroupVO;
import com.quick.develop.form.vo.GenDynamicFormGroupVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
* 表单组
*
* @author 阿沐 babamu@126.com
* @since 1.0.0 2023-09-30
*/
@Mapper
public interface GenDynamicFormGroupConvert {
    GenDynamicFormGroupConvert INSTANCE = Mappers.getMapper(GenDynamicFormGroupConvert.class);

    GenDynamicFormGroupEntity convert(GenDynamicFormGroupVO vo);

    GenDynamicFormGroupVO convert(GenDynamicFormGroupEntity entity);

    FormGroupVO convertFormVo(GenDynamicFormGroupEntity entity);

    GenDynamicFormGroupEntity convertFormEntity(FormGroupVO vo);

    List<GenDynamicFormGroupVO> convertList(List<GenDynamicFormGroupEntity> list);

}